<form action="{:request()->url()}" autocomplete="off" class="layui-form layui-card" data-auto="true" method="post">
    <div class="layui-card-body padding-left-40">
        <script>
            layui.form.render();
        </script>
        <label class="layui-form-item relative block">
            <span class="color-green font-w7">字段</span>
            <span class="color-desc margin-left-5">name</span>
            <input class="layui-input" name="name" placeholder="请输字段" disabled value="{$vo.name|default=''}"/>
            <span class="help-block"><b>必填，</b>请勿修改，如有问题联系技术员</span>
        </label>

        <label class="layui-form-item relative block">
            <span class="color-green font-w7">值</span>
            <span class="color-desc margin-left-5">value</span>
            <!--{if in_array($vo.name, ["icon", "attract"])}-->
            <br/>
            <input type="hidden" name="value" value="{$vo.value|default=''}">
            <script>$('[name=value]').uploadOneImage()</script>
            <br/>
            <!--{else}-->
            <input class="layui-input" name="value" placeholder="请输值" required value="{$vo.value|default=''}"/>
            <!--{/if}-->
            <span class="help-block"><b>必填，</b>请勿修改，如有问题联系技术员,图片只支持png</span>
        </label>

    </div>

    <div class="hr-line-dashed"></div>
    {notempty name='vo.id'}<input name='id' type='hidden' value='{$vo.id}'>{/notempty}

    <div class="layui-form-item text-center">
        <button class="layui-btn" type='submit'>保存数据</button>
        <button class="layui-btn layui-btn-danger" data-close data-confirm="确定要取消编辑吗？" type='button'>取消编辑</button>
    </div>
</form>
